import Vue from 'vue'
import Router from 'vue-router'
import index from "../components/index/index.vue"
import indexinfo from "../base/indexinfo.vue"
import share from "../base/share.vue"
import product from "../base/product.vue"
import technology from "../base/technology.vue"
import about from "../base/about.vue"
import wikichart from "../base/wikichart.vue"
import wikibiji from "../base/wikibiji.vue"
Vue.use(Router)

export default new Router({
  mode:'history',
  base: '/dist',
  routes:[
    {path:'/',redirect:'/index/indexinfo'},
    { path: '/index', 
      component:index,
      children:[
        {
          path:'indexinfo',
          component:indexinfo,
          meta: {
            title:"indexinfo",
            tx:1
          }
        },
        {
          path:'share',
          component:share,
          meta: {
            title:"share",
            tx:2
          }
        },
        {
          path:'product',
          component:product,
          meta: {
            title:"product",
            tx:3
          }
        },
        {
          path:'technology',
          component:technology,
          meta: {
            title:"technology",
            tx:4
          }
        },
        {
          path:'about',
          component:about,
          meta: {
            title:"about",
            tx:5
          }
        },
        {
          path:'wikichart',
          component:wikichart,
          meta: {
            title:"wikichart",
            tx:6
          }
        },
        {
          path:'wikibiji',
          component:wikibiji,
          meta: {
            title:"wikibiji",
            tx:7
          }
        }
      ]
    },
  ]
})
